package com.example.teatea.project;

import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

//员工实体
public class Staff {
    public  SimpleIntegerProperty sId = new SimpleIntegerProperty();//员工编号
    public  SimpleStringProperty sName = new SimpleStringProperty();//员工姓名
    public  SimpleStringProperty sSex = new SimpleStringProperty();//员工性别
    public  SimpleStringProperty sPhone = new SimpleStringProperty();//员工手机号（作为登录系统的账号

    public int getsId() {
        return sId.get();
    }

    public SimpleIntegerProperty sIdProperty() {
        return sId;
    }

    public void setsId(int sId) {
        this.sId.set(sId);
    }

    public String getsName() {
        return sName.get();
    }

    public SimpleStringProperty sNameProperty() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName.set(sName);
    }

    public String getsSex() {
        return sSex.get();
    }

    public SimpleStringProperty sSexProperty() {
        return sSex;
    }

    public void setsSex(String sSex) {
        this.sSex.set(sSex);
    }

    public String getsPhone() {
        return sPhone.get();
    }

    public SimpleStringProperty sPhoneProperty() {
        return sPhone;
    }

    public void setsPhone(String sPhone) {
        this.sPhone.set(sPhone);
    }

    public String getsPsw() {
        return sPsw.get();
    }

    public SimpleStringProperty sPswProperty() {
        return sPsw;
    }

    public void setsPsw(String sPsw) {
        this.sPsw.set(sPsw);
    }

    public String getsType() {
        return sType.get();
    }

    public SimpleStringProperty sTypeProperty() {
        return sType;
    }

    public void setsType(String sType) {
        this.sType.set(sType);
    }

    public String getsTime() {
        return sTime.get();
    }

    public SimpleStringProperty sTimeProperty() {
        return sTime;
    }

    public void setsTime(String sTime) {
        this.sTime.set(sTime);
    }

    public int getsState() {
        return sState.get();
    }

    public SimpleIntegerProperty sStateProperty() {
        return sState;
    }

    public void setsState(int sState) {
        this.sState.set(sState);
    }

    public  SimpleStringProperty sPsw = new SimpleStringProperty();//员工密码
    public  SimpleStringProperty sType = new SimpleStringProperty();//员工类型
    public  SimpleStringProperty sTime = new SimpleStringProperty();//入职时间
    public  SimpleIntegerProperty sState = new SimpleIntegerProperty();//入职状态

    public Staff(String name, String sex, String phone, String psw, String type, int state) {
        this.setsName(name);
        this.setsSex(sex);
        this.setsPhone(phone);
        this.setsPsw(psw);
        this.setsType(type);
        this.setsState(state);
    }

    public Staff() {
    }

    public Staff(String name, String sex, String phone, String time) {
        this.setsName(name);
        this.setsSex(sex);
        this.setsPhone(phone);
        this.setsTime(time);
    }

    public Staff(String name, String sex, String phone) {
        this.setsName(name);
        this.setsSex(sex);
        this.setsPhone(phone);
    }


}
